<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">

<html>
<head>
	<title>Swing BorderLayout</title>
	<link href="../../../book.css" rel="stylesheet" type="text/css">
</head>

<body>
<h1>Swing BorderLayout</h1>
<table border="0" width="800" cellspacing="1" cellpadding="0">
	<tr>
		<td><b>BorderLayout</b> lays out a container, arranging and resizing its 
		components to fit in five regions: <b>north</b>, <b>south</b>, <b>east</b>,
		<b>west</b>, and <b>center</b>. Each region may contain no more than one 
		component, and is identified by a corresponding constant: <b>NORTH</b>,
		<b>SOUTH</b>, <b>EAST</b>, <b>WEST</b>, and <b>CENTER</b>. When adding a 
		component to a container with a border layout, use one of these five 
		constants. As a convenience, <b>BorderLayout</b> interprets the absence 
		of a string specification the same as the constant <b>CENTER</b>.<ul>
		<li><a href="#MainFeatures">Main Features</a></li>
		<li><a href="#GraphicalFeedback">Graphical Feedback</a></li>
	</ul>
    <p></p>
<h2><a name="MainFeatures"></a>Main Features</h2>
            <ul>
              <li>Select <b>BorderLayout</b> from the <b>Layouts</b> palette and 
				drop it on a JFrame or JPanel</li>
            </ul>
<blockquote>
	<p>
	<img border="0" src="images/bl_design_view.gif"></p>
</blockquote>
<ul>
				<li>Graphical feedback is provided for all drop and move 
				interactions</li>
            </ul>
<blockquote>
	<p><img border="0" src="images/bl_drop_west.gif" width="322" height="266">&nbsp;
	<img border="0" src="images/bl_drop_center.gif" width="322" height="266"></p>
</blockquote>
<ul>
				<li>Horizontal and vertical gaps can be specified using the <b>
				<a href="../../../com.instantiations.designer.doc.user/html/userinterface/property_pane.html">Property Pane</a></b></li>
            </ul>
		<blockquote>
			<p><img border="0" src="images/bl_properties.gif" align="top">&nbsp;
	<img border="0" src="images/bl_gaps.gif" width="322" height="266"></p>
		</blockquote>
		<ul>
				<li>Constraints can be specified using the <b>
				<a href="../../../com.instantiations.designer.doc.user/html/userinterface/property_pane.html">Property Pane</a></b></li>
            </ul>
<blockquote>
	<p>
	<img border="0" src="images/bl_constraints.gif" align="top" width="186" height="172"></p>
</blockquote>
          <p></p>
            <h2><a name="GraphicalFeedback"></a>Graphical Feedback</h2>
            <ul>
              <li>When moving a widget or adding a new widget, open cells are 
				highlighted green while the current drop point is highlighted in yellow<br>
				<br>
	<img border="0" src="images/bl_drop_center.gif" width="322" height="266">&nbsp;
	<img border="0" src="images/bl_drop_east.gif" width="322" height="266"><br>
&nbsp;</li>
				<li>Attempting to drop into an already occupied cell is blocked<br>
				<br>
				<img border="0" src="images/bl_drop_blocked.gif" width="322" height="266"></li>
            </ul>
		</td>
	</tr>
</table>
</body>
</html>